<?php

$ijstyle = $_REQUEST['ijstyle'];
$ijsource = $_REQUEST['ijsource'];

?>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Inkjockey: Print this</title>
<meta name="KEYWORDS" content="printing; ink; toner" >
<meta name="DESCRIPTION" content="This is the toolbar for the InkJockey Printing system." >
<meta name="author" content="Triggerman">
<meta name="copyright" content="2007, inkjockey.com">
<meta name="generator" content="Microsoft Notepad, npd">
</head>

<style type="text/javascript">

function changeStyle()
{
	var selMain = document.getElementById("selStyle");
	var iSelect = selMain.selectedIndex;	
	var vStyle = selMain.options[iSelect].value;

	parent.ijPage.location.href="getink.php?ijstyle="+ vStyle +"&ijsource=<?php echo $ijsource; ?>";
}
</style>
<body>
<form>
<table width="100%">
<tr>
	<td><a href="javascript:print()">Print</a></td>
	<td><a href="http://www.inkjockey.com/toner.php">Toner</a></td>
	<td>Style: <select id="selStyle" onselectionchange="changeStyle()">
	<?php
	$handler = opendir("xsl");
	$icount = 0;
	while ( $file = readdir ( $handler ) )
	{
		if ( $file[0] != '.' )
		{
			echo "<OPTION name=\"".$icount."\">".$file."</OPTION>";
		}
	}
	closedir ( $handler );

	?>
	</select></td>
	<td>Save: <select id="selSave" onselectionchange="changeSave()">
	<OPTION name="1">PDF</OPTION>
	<OPTION name="2">XML</OPTION>
	<OPTION name="3">DOC</OPTION>
	<OPTION name="4">XLS</OPTION>
	</select></td>
</tr>
</table>
</form>
</body>
</html>